@extends('default.layouts.adminPublic')
@section('title', '修改商户')
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/vendor/jedate/skin/jedate.css')}}">
    <link rel="stylesheet" href="{{asset('/default/css/admin/indexList.css')}}">
    <style>
        .wicon{ background-image:url("");
            background-repeat:no-repeat; background-position:right center; cursor:pointer; }
    </style>
    @endsection
    @section('content')
            <!--导航开始-->
    <div class="crumb_warp">
        <i class="fa fa-home"></i> <a href="{{url('admin/activity_per_red_packet')}}">首页</a> &raquo; 商家推广
    </div>
    <!--导航结束-->
    <!--结果集标题与导航组件 开始-->
    <div class="con">

        <div class="conMain">
            <div class="manage"><h1>修改商户</h1></div>
            <div class="conInfo">
                <div class="manage" style="padding: 0; margin-bottom: 10px;">
                    @if(count($errors)>0)
                        <div class="mark">
                            @if(is_object($errors))
                                @foreach($errors->all() as $error)
                                    <p>{{$error}}</p>
                                @endforeach
                            @else
                                <p>{{$errors}}</p>
                            @endif
                        </div>
                    @endif
                </div>
                <div class="conAddList">
                    <form action="{{url('admin/activity_per_red_packet/'.$redPacket->id)}}" method="post" name="redPacketForm" id="redPacketForm">
                        {{csrf_field()}}
                        <input type="hidden" name="_method" value="put">
                        <input type="hidden" name="id" value="{{$redPacket->id}}">
                        <dl>
                            <dt><i class="require">*</i>商户名称：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="name" value="{{$redPacket->name}}"></dd> <dt><i class="require">*</i>商户名称：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="name" value="{{$redPacket->name}}"></dd>
                        </dl>

                        <dl>
                            <dt><i class="require">*</i>商户地址：</dt>
                            <dd><input type="text" class="inpText" style="width:200px;" name="address" value="{{$redPacket->address}}"></dd>
                        </dl>
                        <dl>
                            <dt><i class="require">*</i>商户联系人：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="contact" value="{{$redPacket->contact}}"></dd>
                        </dl>
                        <dl>
                            <dt>商户手机：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="mobile" value="{{$redPacket->mobile}}"></dd>
                        </dl>
                        <dl>
                            <dt>商户电话：</dt>
                            <dd><input type="text" class="inpText" style="width:40px;"
                                       name="area_code"placeholder="区号" value="{{$redPacket->area_code}}">-
                                <input type="text" class="inpText" style="width:120px;"
                                       name="phone" placeholder="请输入电话号码" value="{{$redPacket->phone}}">-
                                <input type="text" class="inpText" style="width:40px;"
                                        name="ext" placeholder="分机号" value="{{$redPacket->ext}}"></dd>
                        </dl>
                        <dl>
                            <dt>累计领取金：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="receive_num" value="{{$redPacket->receive_num}}"></dd>
                        </dl>
                        <dl>
                            <dt>累计下载次：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="download" value="{{$redPacket->download}}"></dd>
                        </dl>
                        <dl>
                            <dt>累计使用金：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="use_num" value="{{$redPacket->use_num}}"></dd>
                        </dl>
                        <dl>
                            <dt><i class="require">*</i>单个红包金额：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="money" value="{{$redPacket->money}}"></dd>
                        </dl>
                        <dl>
                            <dt>商户账户余额：</dt>
                            <dd><input type="text" class="inpText" style="width:140px;" name="account_balance" value="{{$redPacket->account_balance}}"></dd>
                        </dl>
                        <dl>
                            <dt></dt>
                            <dd>
                                <input type="submit" class="sub" value="修改红包">
                                <input type="button" class="sub but" onclick="history.go(-1)" value="返回">
                            </dd>
                        </dl>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
@endsection

@section('footerjs')
    @parent
@endsection

